package com.example.eureka_client.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 问题回答
 * </p>
 *
 * @author plj
 * @since 2022-03-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ANSWER")
@ApiModel(value="Answer对象", description="问题回答")
public class Answer implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "ID", type = IdType.INPUT)
    private String id;

    @ApiModelProperty(value = "问题id(必须)")
    @TableField("QUESTION_ID")
    private String questionId;

    @ApiModelProperty(value = "回答者id（必须）")
    @TableField("AUTHOR_ID")
    private String authorId;

    @ApiModelProperty(value = "回答者昵称（必须）")
    @TableField("AUTHOR_NAME")
    private String authorName;

    @ApiModelProperty(value = "回答者头像地址（必须）")
    @TableField("AUTHOR_AVATOR")
    private String authorAvator;

    @ApiModelProperty(value = "内容（必须）")
    @TableField("CONTENT")
    private String content;

    @ApiModelProperty(value = "赞同数目")
    @TableField("AGREE_NUM")
    private Integer agreeNum;

    @ApiModelProperty(value = "不赞同数目")
    @TableField("NOT_AGREE_NUM")
    private Integer notAgreeNum;

    @ApiModelProperty(value = "收藏数")
    @TableField("CLLECTION_NUM")
    private Integer cllectionNum;

    @ApiModelProperty(value = "喜欢数")
    @TableField("LIKE_NUM")
    private Integer likeNum;

    @ApiModelProperty(value = "评论数")
    @TableField("COMMENT_NUM")
    private Integer commentNum;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATE_TIME")
    private String createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField("UPDATE_TIME")
    private String updateTime;


}
